<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="chtml" uri="http://www.szhelper.com/jsp/html"%>
<%@ page import="java.util.*,com.hengpeng.itfinbase.persist.ArticleCategory"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>文章列表</title>
<script type="text/javascript">
$(document).ready(function(){
	$("td[title^='discuss_']").each(function(){
        var title = $(this).attr("title");
		$(this).html("<a href='<%=request.getContextPath()%>/am/discuss?articleId=" + title.split("_")[1] + "'>审核评论</a>");
	});
});
</script>
</head>
<body>
<div class="youarehere">网站内容管理 &gt; <span>管理文章</span></div>
<form action='<chtml:path path="/" />am/list' method="post" id="articleForm">
<table width="99%" align="center" border="0" cellpadding="1"
	cellspacing="1" class="data_table">
	<tr>
		<td class="data_tab_th" colspan="6">查询新闻</td>
	</tr>
	<tr>
		<td class="data_tab_tdr">新闻ID</td>
		<td class="data_tab_tdl"><input type="text" value="${id}" name="id" /></td>
		<td class="data_tab_tdr">作者</td>
		<td class="data_tab_tdl"><input type="text" value="${author}" name="author" /></td>
		<td class="data_tab_tdr">投注来源</td>
		<td class="data_tab_tdl"><input type="text" value="${source}" name="source" /></td>
	</tr>
	<tr>
		<td class="data_tab_tdr">内容</td>
		<td class="data_tab_tdl"><input type="text" value="${content}" name="content" /></td>
		<td class="data_tab_tdr">标题</td>
		<td class="data_tab_tdl"><input type="text" value="${fullTitle}" name="fullTitle" /></td>
		<td class="data_tab_tdr">是否置顶</td>
		<td class="data_tab_tdl">
			<select name="isTop">
				<option value="">请选择</option>
				<option value="YES" <c:if test="${isTop=='YES'}">selected="selected"</c:if>>是</option>
				<option value="NO" <c:if test="${isTop=='NO'}">selected="selected"</c:if>>否</option>
			</select>
		</td>
	</tr>
	<tr>
		<td class="data_tab_tdr">类别</td>
		<td class="data_tab_tdl"><select name="categoryId">
			<option value="0">请选择</option>
			<c:forEach var="category_t" items="${categorys }">
				<c:choose>
					<c:when test="${category_t.id eq category.id }"><option value="${category_t.id }" selected="selected">${category_t.name }</option></c:when>
					<c:otherwise><option value="${category_t.id }">${category_t.name }</option></c:otherwise>
				</c:choose>
			</c:forEach>
		</select></td>
		<td class="data_tab_tdr">更新时间</td>
		<td class="data_tab_tdl"><input type="text" value="${updateTime1}" name="updateTime1" id="updateTime1" readonly /><script type="text/javascript">Calendar.showDate("updateTime1");</script>&nbsp;到&nbsp;<input type="text" value="${updateTime2}" name="updateTime2" id="updateTime2" readonly /><script type="text/javascript">Calendar.showDate("updateTime2");</script></td>
		<td class="data_tab_tdr"></td>
		<td class="data_tab_tdl"></td>
	</tr>
	<tr>
		<td colspan="6" class="bg_bai">
		
		<div class="mr_20 t_c">
			<input type="submit" class="pub_bt" value="查询" onclick='document.getElementsByName("PaginationButton_CurrentPage4list")[0].value=1;'/>
			<input type="button"  class="pub_bt" value="清空" onclick="this.form.reset();" />
		</div>
			
	    </td>
	</tr>
</table>
<br />
<!-- 自定义标签示例 --> <chtml:list collection="articlelist"
	type="com.hengpeng.itfinoss.controller.vo.ArticleVo" updateLink="get/@{id}" linkTarget="_self"
	includeFields="fullTitle,groupname,source,author,isAudited,isHignlight,isTop,clickRate,notAuditCount,auditUrl" fieldWidth="240,90,60,60,60,60,60,60,60,60"
	showCheckBox="true" title="新闻列表" paginationName="articleListPage"  detailLink="preview/@{id}" showLinkField="fullTitle"
	allowSort="false">
	<input type="button" value="新增" onclick="javascript:location.href='<%=request.getContextPath()%>/am/new'" />
	<input type="button" value="删除" onclick="javascript:helper.fun.deleted('<%=request.getContextPath()%>/am/remove','ids','id4articlelist','articleForm');" />
</chtml:list>
</form>

<!--说明   -->	
<div class="sm_info">
	<p class="row_one">说明：</p>
	<p class="other"></p>
	<p class="other"></p>
</div>
</body>
</html>